#include "StdAfx.h"
#include <iostream>
#include "ExchangeAdapterDef.h"
#include "UEXDebugHelper.h"



std::ostream& operator<<( std::ostream& os,const EXDataSet& info )
{
	os<<"dump EXDataSet"<<std::endl;
	for(EXDataSet::const_iterator it = info.begin(); it != info.end(); ++ it)
	{
		os<<it->first<<":" <<it->second<<std::endl;
	}
	os<<"--------"<<std::endl;
	return os;
}

std::ostream& operator<<( std::ostream& os,const EXDataSetS& sets )
{
	os<<"dump EXDataSetS"<<std::endl;
	for(EXDataSetS::size_type i =0; i<sets.size(); ++i)
	{
		const EXDataSet& info= sets[i];
		for(EXDataSet::const_iterator it = info.begin(); it != info.end(); ++ it)
		{
			os<<it->first<<":" <<it->second<<std::endl;
		}
	}

	return os;
}




void UEXDebugHelper::Dump( const EXDataSet& theset )
{
	std::cout<<theset;
}

void UEXDebugHelper::Dump( const EXDataSetS& thesets )
{
	std::cout<<thesets;
}
